import { networkRequest, baseRequestConfig, sessionConfig } from './RequestConfig'

//获取session
export const getSession = (params) => {
    sessionConfig.url = '/PCS/main/000_000_000'
    sessionConfig.data = params
    return networkRequest(
        sessionConfig
    )
}

//获取验证码
export const getVerificationCode = (params) => {
    baseRequestConfig.url = '/PCS/main/000_000_001';
    baseRequestConfig.data = params;
    return networkRequest(baseRequestConfig)
}

//登录接口
export const startLogin = (params) => {
    baseRequestConfig.url = '/PCS/main/000_000_002';
    baseRequestConfig.data = params;
    return networkRequest(baseRequestConfig)
}

//获取所有用户
export const getAllUser = (params) => {
    baseRequestConfig.url = '/PCS/main/000_000_003';
    baseRequestConfig.data = params;
    return networkRequest(baseRequestConfig)
}

//获取最新案件
export const getLatestCase = (params) => {
    baseRequestConfig.url = '/PCS/main/000_000_004';
    baseRequestConfig.data = params;
    return networkRequest(baseRequestConfig)
}

//获取最新案件
export const getCase = (params) => {
    baseRequestConfig.url = '/PCS/main/000_000_005';
    baseRequestConfig.data = params;
    return networkRequest(baseRequestConfig)
}

//删除用户
export const deleteUser = (params) => {
    baseRequestConfig.url = '/PCS/main/000_000_006';
    baseRequestConfig.data = params;
    return networkRequest(baseRequestConfig)
}

//删修改密码
export const changePwd = (params) => {
    baseRequestConfig.url = '/PCS/main/000_000_007';
    baseRequestConfig.data = params;
    return networkRequest(baseRequestConfig)
}

//查询推送日志
export const pushLog = (params) => {
    baseRequestConfig.url = '/PCS/main/000_000_008';
    baseRequestConfig.data = params;
    return networkRequest(baseRequestConfig)
}

//查询推送开关状态
export const queryValveState = (params) => {
    baseRequestConfig.url = '/PCS/main/000_000_009';
    baseRequestConfig.data = params;
    return networkRequest(baseRequestConfig)
}

//设置推送开关状态
export const setValveState = (params) => {
    baseRequestConfig.url = '/PCS/main/000_000_010';
    baseRequestConfig.data = params;
    return networkRequest(baseRequestConfig)
}

//新增用户
export const addUser = (params) => {
    baseRequestConfig.url = '/PCS/main/000_000_011';
    baseRequestConfig.data = params;
    return networkRequest(baseRequestConfig)
}


